package com.kang.dao;

import java.util.List;
import com.kang.pojo.Warehouse;
import com.vonechina.entity.page.WarehousePage;

/**
 * 仓库持久层
 * 
 * @author zs614
 *
 */
public interface WarehouseMapper {
	/**
	 * 分页查询仓库
	 * 
	 * @param warehousePage
	 *            搜索条件实体类
	 * @return
	 */
	public Integer countWarehouse(WarehousePage warehousePage);

	/**
	 * 查询仓库数量
	 * 
	 * @param warehousePage
	 *            搜索条件实体类
	 * @return
	 */
	public List<Warehouse> listWarehouse(WarehousePage warehousePage);

	/**
	 * 删除仓库
	 * 
	 * @param warehousemanagementid
	 *            仓库ID
	 * @return
	 */
	public int deleteByPrimaryKey(Integer warehousemanagementid);

	/**
	 * 新增仓库
	 * 
	 * @param record
	 *            仓库实体类
	 * @return
	 */
	public int insertSelective(Warehouse record);

	/**
	 * 通过主键查询仓库
	 * 
	 * @param warehousemanagementid
	 *            仓库ID
	 * @return
	 */
	public Warehouse selectByPrimaryKey(Integer warehousemanagementid);

	/**
	 * 更新仓库
	 * 
	 * @param record
	 *            仓库实体类
	 * @return
	 */
	public int updateByPrimaryKeySelective(Warehouse record);

	/**
	 * 查询最大仓库编码
	 * 
	 * @return
	 */
	public String selectMaxCode();

}